'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	const db = uniCloud.database({});
	const shop = db.collection('db_shop_bag')
	// await shop.remove({})
	console.log(event._id, "...")

	for (let i = 0; i < event._id.length; i++) {
		await shop.where({
			_id: event._id[i]
		}).update({
			type: 0
		})

	}

	return event
};